package com.localjoycommunity.cpdj.project.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.localjoycommunity.cpdj.project.system.domain.UserNews;
import org.apache.ibatis.annotations.Select;

import java.util.Optional;

/**
 * @author aqie
 * @date 2020-11-02 10:04
 * @function
 */
public interface UserNewsMapper extends BaseMapper<UserNews> {
    @Select("select is_dig from user_news where user_id=#{userId} and news_id =#{newsId};")
    Optional<Integer> isDig(int userId, Long newsId);
}
